<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ page isErrorPage="true" import="java.io.*" contentType="text/plain"%>

<h2>
	<fmt:message key="exception.caught.description" />
</h2>
<div id="alert alert-error">
	<pre>
			Message:
				<%=exception.getMessage()%>
				
				StackTrace:
				<%
					StringWriter stringWriter = new StringWriter();
					PrintWriter printWriter = new PrintWriter(stringWriter);
					exception.printStackTrace(printWriter);
					out.println(stringWriter);
					printWriter.close();
					stringWriter.close();
				%>
		</pre>
</div>
